package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 添加员工
     * @param employeedto
     */
    void addEmployee(EmployeeDTO employeedto);

    /**
     * 查询所有员工/通过名字查询所有员工
     * @param employeePageQueryDTO
     * @return
     */
    PageResult getAllEmployee(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 通过id修改员工动态属性
     * @param status
     * @param id
     */
    void updateEmployeeStatusById(Integer status, Long id);

    /**
     * 通过id获取员工信息
     * @param id
     * @return
     */
    Employee getEmployeeById(Long id);

    /**
     * 修改员工信息
     * @param employeedto
     */
    void updateEmployee(EmployeeDTO employeedto);
}
